package com.frame.work.entity.relation;

import com.baomidou.mybatisplus.annotation.TableField;
import com.frame.work.entity.BaseClassEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class TblZigbeeAndGateway extends BaseClassEntity {

    /**
     * zigbee设备所属网关ID
     */
    @TableField(value = "`gateway_id`")
    private String gatewayId;

    /**
     * 所属房间ID
     */
    @TableField(value = "`room_id`")
    private String roomId;

    /**
     * zigbee设备模块mac地址
     */
    @TableField(value = "`zigbee_mac`")
    private String zigbeeMac;

    @TableField(value = "`od_index`")
    private String odIndex;

    @TableField(value = "`device_type`")
    private String deviceType;

    @TableField(value = "`product_type`")
    private String productType;

    /**
     * 设备名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 图片地址
     */
    @TableField(value = "`img_url`")
    private String imgUrl;

    /**
     * 1：zigbee设备；2：wifi设备;9nb设备
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 设备状态
     */
    @TableField(value = "`switch_state`")
    private String switchState;

    /**
     * 0：在网 1：离网 2：逻辑删除
     */
    @TableField(value = "`lwbz`")
    private String lwbz;

    /**
     * 设备状态时间
     */
    @TableField(value = "`switch_time`")
    private LocalDateTime switchTime;

    /**
     * 1.都推送 2布防 3撤防 4不推送
     */
    @TableField(value = "`pushType`")
    private String pushtype;

    /**
     * 联控类型--用于魔幻开关  00普通设备 02联控设备
     */
    @TableField(value = "`spreading_type`")
    private String spreadingType;

    @TableField(value = "`gateway_mac`")
    private String gatewayMac;

}
